package design.command;
import design.book.Book;
import design.manage.*;
public class SortOperation implements AbstractCommand{ //命令模式之按价格排序
	
	private BookManage bookmanage = null;
	public SortOperation() {
		bookmanage = BookManage.getInstance();
	}
	@Override
	public void execute(String attribute) {
		bookmanage.sortByPrice(attribute);
	}
	@Override
	public void preproessing(Book b) {}

}
